package psn.polaris;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import psn.polaris.db.config.PolarisDataSourceInfo;

import javax.sql.DataSource;

@SpringBootApplication
@EnableConfigurationProperties
@PropertySource(
        value = "classpath:config/db.properties"
)
public class PolarisDbDriveStarter {

    @Autowired
    private PolarisDataSourceInfo polarisDataSourceInfo;

    public static void main(String[] args) {
        SpringApplication.run(
                PolarisDbDriveStarter.class
        );
    }

}
